package com.aviation.sell_ticket.service.impl;

import com.aviation.sell_ticket.mapper.FlightSequenceMapper;
import com.aviation.sell_ticket.pojo.Aviation_flight_sequence;
import com.aviation.sell_ticket.service.FlightSequenceService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class FlightSequenceServiceImpl implements FlightSequenceService {

    @Resource
    FlightSequenceMapper flightSequenceMapper;

    /**
     * 查询订单航班顺序
     * @param orderId 订单id
     * @return Aviation_flight_sequence
     */
    @Override
    public Aviation_flight_sequence sequenceQuery(String orderId) {
        return flightSequenceMapper.sequenceQuery(orderId);
    }

    /**
     * 添加订单航班顺序数据
     * @param sequence 航班数据
     * @return int
     */
    @Override
    public int sequenceAdd(Aviation_flight_sequence sequence) {
        return flightSequenceMapper.sequenceAdd(sequence);
    }
}
